//在js中引入
$(document).ready(function () {
    $('#top').load('/front/top.html');
    $('#foot').load('/front/foot.html');
    $('#page').load('/front/page.html');
});


function setCompanyData(data) {

    $("#logo").attr("src", data.logo);
    $("#phone").html(data.phone);
    $("#net").html("  网址:  " + data.net);
    $("#email").html("   邮箱:" + data.email + "联系电话: (座机) " + data.linePhone);
    $("#address").html("  联系地址:" + data.address);
    $("#version").html(data.version);
}

function setNavModelData(data) {
    let html = '';
    for (let i = 0; i < data.length; i++) {
        html += ' <div onclick="window.location.href=\'' + data[i].href + '\'">' + data[i].title + '</div>';
    }
    $("#nav").html(html);
}